package com.titan.demo.camel.sample.eip.split.对集合对象循环;

import java.util.HashSet;
import java.util.Set;

import com.titan.demo.camel.utils.Context;

public class DemoMain {

	public static void main(String[] args) {
		try {
			Context.initSpring("com/titan/demo/camel/sample/eip/split/对集合对象循环/spring/ApplicationContext.xml");
			
			/*
			List<String> items = new ArrayList<String>();
			for (int i = 0; i < 5; i++) {
				items.add("值【"+i+"】");
			}
			*/
			Set<String> items = new HashSet<String>();
			for (int i = 0; i < 5; i++) {
				items.add("值【"+i+"】");
			}
			Context.send("camel-1", "direct:start", items);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
